package com.kantboot.business.talent.web.controller;

import com.kantboot.business.talent.service.IBusTalentAwardService;
import com.kantboot.global.rest.result.CommonSuccessStateCodeAndMsg;
import com.kantboot.util.common.result.RestResult;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 关于 奖项/荣誉 的控制器
 */
@RestController
@RequestMapping("/business-talent-web/award")
public class BusTalentAwardController {

    @Resource
    private IBusTalentAwardService service;

    /**
     * 获取所有奖项
     * @return 所有奖项
     */
    @RequestMapping("/getAll")
    public RestResult<Object> getAll() {
        return RestResult.success(service.getAll(), CommonSuccessStateCodeAndMsg.GET_SUCCESS);
    }


}
